<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.text.SimpleDateFormat"%>  
<%@page import="java.util.Calendar"%>   
<%@page import="java.util.Date"%>   
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>计划列表</title>
<!-- qt-learnplan-crew.jsp -->
<!-- 主题模式  -->
<link rel="stylesheet" href="public/css/journal.css" />
<link rel="stylesheet" href="public/css/text.css" />
<!-- js -->
<script src="public/js/weibu.js"></script>
<!--返回顶部-->
<script src="public/js/jquery.min.js"></script>
</head>
<body class="fatherdiv">
			<div>
				<div class="nav">
					您好! 
					<a href="" class="">${userinfo.studentName}</a> 
					部门： <a>${classEntity.className}</a>
					 部门经理： <a>${monitor.studentName}</a> 
					 学分：
					<a href="javascript:loadXxx('stu/myscore.jsp')">[${userinfo.totalCredits}分]</a> 
					<a target="" class="" href="">[查看课表]</a> 
					<a id="qiantaipass" class="" href="qt-user-updatepass">[修改密码]</a> 
					<a class="" href="logout" onclick="return confirm('确定退出？')">[注销]</a>
	</div>
			<ul class="nav_head">
			<li>
				<div>
					<img src="public/images/xuexi.png" />
					<a href="qiantai">快乐学习</a>
				</div>
			</li>
			<li>
				<div>
					<img src="public/images/quxian.png" />
					<a href="qt-assessment">学习评估</a>
				</div>
			</li>
			<!-- <li>
				<div>
					<img src="public/images/rongyu.png" />
					<a href="qt-my-honor">我的荣誉</a>
				</div>
			</li> -->
			<li>
				<div>
					<img src="public/images/jihua.png" /> <a
						href="qt-learnplan-list?id=${userinfo.stuId}">学习计划</a>
				</div>
			</li>
			<li>
				<div>
					<img src="public/images/tuadui.png" /> <a href="qt-team-list?id=${userinfo.stuId}">项目团队</a>
				</div>
			</li>
			<li>
				<div>
					<img src="public/images/jiuye.png" />
					<a href="chaxuijingyan?id=-1">就业资讯</a>
				</div>
			</li>
		</ul>
		<!--头部上-->	
		</div>
		<!--
            	作者：offline
            	时间：2017-11-14
            	描述：日志导航div
            -->
		<div class="journal_body_div">
			<div class="journal_navigation_div">
				<ul class="navigation_ul">
				<li class="navigation_li">
					<%
							SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); 
							Calendar cl = Calendar.getInstance(); 
							cl.setTime(new Date());
							Integer week = cl.get(Calendar.WEEK_OF_YEAR);   
							System.out.println(week);   
							cl.add(Calendar.DAY_OF_MONTH, -7);  
							Integer year = cl.get(Calendar.YEAR);  
							if(week<cl.get(Calendar.WEEK_OF_YEAR)){  
							    year+=1;  
							}  
							System.out.println(year+"年第"+week+"周");
						%>
					<a class="li_a" href="qt-learnplan-add?week=<%=week%>&stuId=${userinfo.stuId}">添加计划</a>
				</li>
				<li class="navigation_li">
					<a class="li_a" href="qt-learnplan-list?id=${userinfo.stuId}">我的学习计划列表</a>
				</li>
				<c:choose>
					<c:when test="${identity.stu_identity != '组长'}">
						<li class="navigation_li" style="display:none;">
							<a class="li_a">组员学习计划列表</a>
						</li>
					</c:when>
					<c:otherwise>
						<li class="navigation_li li_selected">
						<a class="li_a" href="qt-crew?id=${userinfo.stuId}">组员学习计划列表</a>
						</li>
					</c:otherwise>
				</c:choose>
			</ul>
			</div>
			<div class="journal_tabs">
				<div class="tabs_div">
					<div style="float:left;border:1px solid dodgerblue;border-bottom:none;width:20px;height:0px;margin-top:30px;margin-left:-21px;"></div>
					<div class="tabs_content">计划列表</div>
					<div style="border:1px solid dodgerblue;border-bottom:none;width:650px;height:0px;margin-left: 101px;"></div>
				</div>
				<div>
					<div class="plan_list_div">
						<ul>
							<c:forEach items="${planlist}" var="planlist">
								<li class="plan_list_li">
									<img src="public/images/plan.png" /> 
										<a class="plan_a" href="qt-plan?week=${planlist.learn_plan_week}&planId=${planlist.learn_plan_id}"> 
											${planlist.user_name}<fmt:formatDate value="${planlist.make_time}" pattern="yyyy年" />第 ${planlist.learn_plan_week}周计划
										</a>
								</li>
							</c:forEach>
						</ul>
					</div>
				</div>
			</div>
			<!--底部下-->
			<div class="home_page_bottom">
				<div class="botton_left">
					<img style="height: 50px;margin-left: 10px;" src="public/images/downloadlog.png" />
				</div>
				<div class="botton_right">
					<div>?2017
						<a style="color: gray;">中科韬睿</a> 版权所有 版本 Ver 1.1.8</div>
					<div>研发部技术总监 李赞红 郭华</div>
					<div>电话 18573308384 18673363711</div>
				</div>
			</div>
			<!--回到顶底部-->
		
		</div>
	</body>
</html>